#!/bin/sh

BOOT_VERSION=$(grep -a BOOT /dev/mtd4)

echo BOOT_VERSION=$BOOT_VERSION

(echo $BOOT_VERSION | grep -q HAINAN ) && MODEL=A1200 
(echo $BOOT_VERSION | grep -q SUMATRA) && MODEL=E2   
(echo $BOOT_VERSION | grep -q MACAU )  && MODEL=E6  

case $MODEL in
  A1200|E6)
    INPUT=ts
    ;;
  E2)
    INPUT=kb
    ;;
esac

echo PHONE_MODEL=$MODEL
echo INPUT_INTERFACE=$INPUT


